package com.diy.sigmund;

import org.springframework.boot.WebApplicationType;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;

@SpringBootApplication
public class DiyDockerDemoApplication extends SpringBootServletInitializer {

    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
        return builder.sources(DiyDockerDemoApplication.class);
    }

    public static void main(String[] args) {
        new SpringApplicationBuilder(DiyDockerDemoApplication.class).web(WebApplicationType.SERVLET).run(args);
    }
}
